#!/bin/sh
# make_dirs.sh
# Make dirs for redis docker stack.

mkdir -p /home/redis/001/data
mkdir -p /home/redis/002/data
mkdir -p /home/redis/003/data
mkdir -p /home/redis/004/data
mkdir -p /home/redis/005/data
mkdir -p /home/redis/006/data
mkdir -p /home/redis/007/data
mkdir -p /home/redis/008/data
mkdir -p /home/redis/009/data
mkdir -p /home/redis/010/data

mkdir -p /home/redis/001/conf
mkdir -p /home/redis/002/conf
mkdir -p /home/redis/003/conf
mkdir -p /home/redis/004/conf
mkdir -p /home/redis/005/conf
mkdir -p /home/redis/006/conf
mkdir -p /home/redis/007/conf
mkdir -p /home/redis/008/conf
mkdir -p /home/redis/009/conf
mkdir -p /home/redis/010/conf

# user id 100 is redis in docker.
# [root@...]# docker run --rm redis:alpine id redis
# uid=100(redis) gid=101(redis) groups=101(redis),101(redis)
chown -R 100 /home/redis/